package com.bwie.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @Author Ms.发发
 * @ClassName Food
 * @Date 2024/12/18 8:43
 * @Description
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Food implements Serializable {

    private Long id;
    @NotBlank(message = "食物名称不可为空")
    @Size(min = 2,max = 6,message = "食物名称长度超出")
    private String foodName;//食物名称

    private Double price;  //价格
    private Integer number;  //数量
    @NotBlank(message = "拼团人不可为空")
    private String username; //拼团人用户
}
